package com.systop.demoswagger.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "TestController",description = "测试模块",hidden = false)
@RequestMapping("/test")
public class TestController {

    @ApiOperation("测试swagger")
    @GetMapping("/hi")
    public String hello(){
        return "hello swagger!";
    }

}
